include ../../../mk/Makefile.root.include
include ../../../mk/Makefile.libs.include
HIDE=

TARGET_BIN := main.bin
PROJ_CXXFLAGS += -DLEVELDB_PLATFORM_POSIX

LEVELDB_SRC_HOME = ./leveldb


#source files
CUR_PROJ_DIR	:= .
PROJ_CXX_SRC 	+= $(wildcard $(CUR_PROJ_DIR)/*.cpp)
PROJ_CXX_SRC 	+= $(wildcard $(LEVELDB_SRC_HOME)/db/*.cpp)
PROJ_CXX_SRC 	+= $(wildcard $(LEVELDB_SRC_HOME)/table/*.cpp)
PROJ_CXX_SRC 	+= $(wildcard $(LEVELDB_SRC_HOME)/util/*.cpp)

#include
PROJ_INC_PATHES += $(LEVELDB_SRC_HOME)/include
PROJ_INC_PATHES += $(LEVELDB_SRC_HOME)



# ---- dependency libs
#PROJ_INC_PATHES +=	$(GTEST_INC_PATH)
#PROJ_LIB_PATHES += 	$(GTEST_LIB_PATH)
#PROJ_LIB_NAMES += 	$(GTEST_LIB_NAME)

#PROJ_INC_PATHES +=	$(LEVELDB_INC_PATH)
#PROJ_LIB_PATHES += 	$(LEVELDB_LIB_PATH)
#PROJ_LIB_NAMES 	+=  $(LEVELDB_LIB_NAME)

#common lib
PROJ_LIB_NAMES 	+=  pthread dl


all: $(TARGET_BIN)

$(TARGET_BIN):$(OBJS)
	$(DO_CPP_TARGET)

clean:
	$(DO_CLEAN)
	rm -frv *.log *.db

run: nothing
	./$(TARGET_BIN)

nothing:
